const path = require('path')
const { program } = require("commander")
const exec = require('child_process').execSync
const configPath = path.join(__dirname, '../config/webpack.dev.js')

exec(`webpack-dev-server --config ${configPath}`, {
    stdio: 'inherit',
    env: {
        CONFIGPATH: program.config
    }
})